import {get, post} from "@/utils/http";

// 获取渠道列表
export async function fetchChannelList(params) {
    return get('channelRoster/search', params)
}

// 渠道名称下拉
export async function selectChannel(params) {
    return get('channel/list', params)
}

// 渠道去重
export async function channelDuplication(params) {
    return post('channelRoster/deDuplication', params)
}

// 新增渠道
export async function addChannel(params) {
    return post('channel/add', params)
}

// 获取渠道商列表
export async function fetchChannelNameList(params) {
    return get('channel/search', params)
}

// 获取渠道交易明细
export async function fetchChannelTrading(params) {
    return get('channelTrading/search', params)
}

// 渠道商编辑单价
export async function channelTradingEditUnitPrice(params) {
    return post('channelTrading/editUnitPrice', params)
}

// 新增渠道交易
export async function addChannelTrading(params) {
    return post('channelTrading/add', params)
}
